﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Project.Core.Api.Controllers.Authorize.Dto
{
    /// <summary>
    /// 登录Dto
    /// </summary>
    public class LoginDto
    {
        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "The UserName is Required")]
        [MinLength(6)]
        [MaxLength(20)]
        [DisplayName("UserName")]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "The PassWord is Required")]
        [MinLength(6)]
        [MaxLength(20)]
        [DisplayName("PassWord")]
        public string PassWord { get; set; }
    }
}
